
import {
  TAB_MENU,
  IFRAME_MENU,
  COMP_SIZE,
  LOCALE_LANG,
  THEME_COLOR,
  THEME_TYPE,
  SIGN_IN,
  DEVICE,
} from '../types';

import type { ISideMenu } from '@/store/reducers/app';



// 设置导航菜单
export const createMenuList =
  () =>
  async (dispatch, getState) => {
   

  };

// 设置数据字典
export const createDictData =
  () =>
  async (dispatch, getState): Promise<void> => {
    
  };

// 设置功能权限
export const createAuthData =
  () =>
  async (dispatch, getState): Promise<void> => {
    
  };

// 获取收藏菜单
export const createStarMenu =
  () =>
  async (dispatch, getState): Promise<void> => {
    
  };

// 设置收藏菜单
export const setStarMenu =
  (data: ISideMenu[]) =>
  async (dispatch, getState): Promise<void> => {
    
  };

// 退出登录
export const createSignOut =

  () =>
  (dispatch, getState): void => {
    
  };

// 登录
export const createSignIn = (payload) => ({ type: SIGN_IN, payload });

// 设置顶部选项卡导航
export const createTabMenu = (payload, behavior) => ({ type: TAB_MENU, payload, behavior });

// 设置 iframe 导航
export const createIframeMenu = (payload, behavior) => ({ type: IFRAME_MENU, payload, behavior });

// 设置尺寸
export const createComponentSize = (payload) => ({ type: COMP_SIZE, payload });

// 设置多语言
export const createLocaleLang = (payload) => ({ type: LOCALE_LANG, payload });

// 设置主题颜色
export const createThemeColor = (payload) => ({ type: THEME_COLOR, payload });

// 设置主题模式
export const createThemeType = (payload) => ({ type: THEME_TYPE, payload });

// 设置设备类型
export const createDeviceType = (payload) => ({ type: DEVICE, payload });
